package com.inspur.dgov.policy.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.inspur.dgov.policy.entity.InfoPolicy;
import com.inspur.dgov.policy.mapper.PolicySubjectMapper;
import com.inspur.dgov.policy.service.PolicySubjectService;
import com.inspur.dgov.policy.vo.PolicySubjectVO;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 政策专题 服务实现类
 *
 * @Author chiyp
 * @Date 20/3/18
 * @Version 1.0
 * @Description 政策专题 服务实现类
 */
@Slf4j
@Service
@AllArgsConstructor
public class PolicySubjectServiceImpl extends ServiceImpl<PolicySubjectMapper, PolicySubjectVO> implements PolicySubjectService {

    /**
     * 政策专题分页数据
     * @param page
     * @param params
     * @return
     */
    @Override
    public IPage<PolicySubjectVO> selectPolicySubjectPage(Page page, Map<String, Object> params) {
        return baseMapper.selectPolicySubjectPage(page, params);
    }

    /**
     * 获取政策选择分页数据
     * @param page
     * @param params
     * @return
     */
    @Override
    public IPage<InfoPolicy> selectPolicySelectPage(Page page, Map<String, Object> params) {
        return baseMapper.selectPolicySelectPage(page, params);
    }
}
